package com.giscloud.limp.dao;

import com.giscloud.limp.entity.CompanyWhitelist;
import com.giscloud.limp.entity.dto.CompanyWhitelistDTO;
import org.apache.ibatis.annotations.Param;
import com.giscloud.limp.entity.CompanyWhitelistExample;
import java.util.List;
import com.giscloud.datasource.core.DynamicDataSource;
/**
 * 企业白名单
 * 
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-10 19:33:47
 */
public interface CompanyWhitelistDao {
    @DynamicDataSource("ds1")
    long countByExample(CompanyWhitelistExample example);
    @DynamicDataSource("ds1")
    int deleteByExample(CompanyWhitelistExample example);
    @DynamicDataSource("ds1")
    int insert(CompanyWhitelist record);
    @DynamicDataSource("ds1")
    int insertSelective(CompanyWhitelist record);
    @DynamicDataSource("ds1")
    List<CompanyWhitelist> selectByExample(@Param("record") CompanyWhitelistDTO record, @Param("createdOrgId") Long createdOrgId);
    @DynamicDataSource("ds1")
    int updateByExampleSelective(@Param("record") CompanyWhitelist record, @Param("example") CompanyWhitelistExample example);
    @DynamicDataSource("ds1")
    int updateByExample(@Param("record") CompanyWhitelist record, @Param("example") CompanyWhitelistExample example);
    @DynamicDataSource("ds1")
    int updateByPrimaryKeySelective(CompanyWhitelist record);
    @DynamicDataSource("ds1")
    int updateByPrimaryKey(CompanyWhitelist record);
    @DynamicDataSource("ds1")
    CompanyWhitelist selectByPrimaryKey(Integer companyListId);
    @DynamicDataSource("ds1")
    CompanyWhitelist selectOneByExample(CompanyWhitelistExample example);
    @DynamicDataSource("ds1")
    CompanyWhitelist selectOneByExampleSelective(@Param("example") CompanyWhitelistExample example, @Param("selective") CompanyWhitelist.Column... selective);
    @DynamicDataSource("ds1")
    CompanyWhitelist selectByPrimaryKeySelective(Integer companyListId, @Param("selective") CompanyWhitelist.Column... selective);
    @DynamicDataSource("ds1")
    List<CompanyWhitelist> selectByExampleSelective(@Param("example") CompanyWhitelistExample example, @Param("selective") CompanyWhitelist.Column... selective);

}
